package com.atguigu.spzx.order;

import com.atguigu.spzx.common.annotate.EnableSpzxAuth;
import com.atguigu.spzx.common.annotate.EnableSpzxMetaObjectHandler;
import com.atguigu.spzx.feign.cart.anno.EnableCartClient;
import com.atguigu.spzx.feign.product.anno.EnableProductClient;
import com.atguigu.spzx.feign.user.anno.EnableUserClient;
import feign.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author LT
 * @create 2024-03-29-19:28
 */
@SpringBootApplication
@EnableCartClient
@EnableProductClient
@EnableUserClient
@EnableSpzxAuth //启用登录拦截器透传登录状态
@MapperScan(basePackages = "com.atguigu.spzx.order.mapper")
@EnableSpzxMetaObjectHandler //启用mp的自动填充处理器
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }

    @Bean
    public Logger.Level level(){
        return Logger.Level.FULL;
    }
}
